<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <script type="text/javascript" src="#{request.contextPath}/UI/support/pub.js"/>
        <style type="text/css">
            .c_c {
                background: gray;
            }
        </style>
    </ui:define>
    <ui:define name="content">
        <div style="margin:5px;">
            <h:form id="form" enctype="multipart/form-data">
                <p:growl id="msgs" showDetail="true"/>
                <p:ajaxStatus style="width:16px;height:16px;">
                    <f:facet name="start">
                        <h:graphicImage value="/images/ajaxloading.gif"/>
                    </f:facet>
                    <f:facet name="complete">
                        <h:outputText value=""/>
                    </f:facet>
                </p:ajaxStatus>

                <!--列表维护-->
                <p:dataTable id="pdt"
                             value="#{esInitTaskAction.itemTaskList}"
                             var="record"
                             rowKey="#{record.power_Pkid}"
                             selectionMode="single"
                             paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink}
                                            {LastPageLink} {RowsPerPageDropdown}"
                             paginator="true"
                             paginatorPosition="bottom"
                             rows="100"
                             rowsPerPageTemplate="200,100,50,40,30,20,10"
                             rowIndexVar="row"
                             emptyMessage="数据记录为空..."
                             rowStyleClass="#{record.name eq null?'c_c':null}"
                             stickyHeader="true">

                    <!--<p:ajax event="rowSelect" listener="#{esInitCttAction.onRowSelect}" update=":form:inputTk"/>-->

                    <p:column headerText="pkid" rendered="false">
                        <h:outputText id="tetid" value="#{record.power_Pkid}"/>
                    </p:column>

                    <p:column headerText="任务类别" style="text-align:left;width:200px;">
                        <h:outputText value="#{record.power_Type}" escape="false"/>
                    </p:column>

                    <p:column headerText="期码" style="text-align:right" rendered="false">
                        <h:outputText value="#{record.period_No}"/>
                    </p:column>

                    <p:column headerText="待处理任务" style="text-align:left;width:200px;">
                        <h:outputText value="#{record.name}"/>
                    </p:column>
                    <p:column headerText="状态标志" style="text-align:center;width:60px;">
                        <h:outputText value="#{esPowerAction.getLabelByValueInStatusFlaglist(record.status_Flag)}"/>
                    </p:column>
                    <p:column headerText="原因" style="text-align:right;">
                        <h:outputText
                                value="#{esPowerAction.getLabelByValueInPreStatusFlaglist(record.pre_Status_Flag)}"/>
                    </p:column>
                </p:dataTable>
            </h:form>

        </div>
    </ui:define>

</ui:composition>